package com.hades.example.java.refactoring.after.c11.c11_6_extract_subclass;

// 修车工的工作
public class LaborItem extends JobItem {
    protected Employee _employee;

    public LaborItem(int quantity, Employee employee) {
        super(quantity);
        this._employee = employee;
    }

    public Employee getEmployee() {
        return _employee;
    }

    public int getUnitPrice() {
        return _employee.getRate();
    }
}
